package br.ufrn.dimap.ExperimentDslLanguage.validation;

import org.eclipse.xtext.validation.Check;

import br.ufrn.dimap.ExperimentDslLanguage.experimentDsl.ExperimentDslPackage;
import br.ufrn.dimap.ExperimentDslLanguage.experimentDsl.ExperimentElement;
 
public class ExperimentDslJavaValidator extends AbstractExperimentDslJavaValidator {

	@Check
	public void checkGreetingStartsWithCapital(ExperimentElement experimentElement) {
		if (!Character.isUpperCase(experimentElement.getName().charAt(0))) {
			warning("Name should start with a capital", ExperimentDslPackage.Literals.EXPERIMENT_ELEMENT__NAME);			
		}
	}

}

